package com.module.record.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.module.common.annotation.Excel;
import com.module.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 定时上报记录
 */
@Data
public class RecordReadingVO implements Serializable {

    /** 采集设备 */
    @Excel(name = "采集设备")
    private String deviceImei;

    /** 表号 */
    @Excel(name = "表号")
    private String meterNo;

    /** 累计用量 */
    @Excel(name = "累计用量")
    private double result;

    /** 尖段用量 */
    @Excel(name = "尖段用量")
    private double result1;

    /** 峰段用量 */
    @Excel(name = "峰段用量")
    private double result2;

    /** 平段用量 */
    @Excel(name = "平段用量")
    private double result3;

    /** 谷段用量 */
    @Excel(name = "谷段用量")
    private double result4;

    /** 深谷段用量 */
    @Excel(name = "深谷段用量")
    private double result5;

    /** 信号值 */
    @Excel(name = "信号值")
    private String csq;

    /** 记录时间 */
    @Excel(name = "记录时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }
}
